package cn.buk.tms.flight.dto;

import java.util.ArrayList;
import java.util.List;

public class FlightCouponInfo {

  /**
   * 错误代码
   * 0 - 无错误
   */
  private int errcode;

  /**
   * 错误信息
   */
  private String errmsg;

  private List<FlightCouponItem> items;

  public int getErrcode() {
    return errcode;
  }

  public void setErrcode(int errcode) {
    this.errcode = errcode;
  }

  public String getErrmsg() {
    return errmsg;
  }

  public void setErrmsg(String errmsg) {
    this.errmsg = errmsg;
  }

  public List<FlightCouponItem> getItems() {
    if (items == null) {
      items = new ArrayList<>();
    }
    return items;
  }

  public void setItems(List<FlightCouponItem> items) {
    this.items = items;
  }
}
